//
//  SSHover.h
//  snomPhone
//
//  Created by Daniel Hazelbaker on 3/30/09.
//  Copyright 2009 Blue Box Moon. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface SSHover : NSWindowController {
    IBOutlet	NSImageView *imageView;
    IBOutlet	NSTextField *messageView;

    NSImage	*image;
    NSString	*title, *message;
    NSArray	*buttons;
    int		visibleTime;
    
    id		context, delegate;
}

@property (nonatomic, retain) NSString *title, *message;
@property (nonatomic, retain) NSImage *image;
@property (nonatomic, retain) NSArray *buttons;
@property (nonatomic, assign) int visibleTime;
@property (nonatomic, retain) id context;
@property (nonatomic, assign) id delegate;

- (id)initWithContent:(NSDictionary *)content notifyDelegate:(id)inDelegate;

- (void)show;
- (void)dismiss;

@end


@protocol SSPopupNotificationDelegate

- (void)popupNotificationDidDismiss:(SSHover *)popup;
- (void)popupNotification:(SSHover *)popup didClickButton:(int)buttonIndex;

@end


extern NSString *kHoverPanelImageKey;
extern NSString *kHoverPanelTitleKey;
extern NSString *kHoverPanelMessageKey;
extern NSString *kHoverPanelButtonsKey;
